import os

import pytest


def single_tag_analyse():
    pytest.main([os.path.join("test_scripts", "test_1_get_tag_id.py"), ])
    pytest.main([os.path.join("test_scripts", "test_2_filter_clean_single_tag_data.py"), ])
    pytest.main([os.path.join("test_scripts", "test_3_xy_basic_analyse.py"), ])
    pytest.main([os.path.join("test_scripts", "test_4_xy_percent_calculate.py"), ])
    pytest.main([os.path.join("test_scripts", "test_5_time_delay_analyse.py"), ])
    pytest.main([os.path.join("test_scripts", "test_6_draw_single_tag_png.py"), ])


def multiple_tags_analyse():
    pytest.main([os.path.join("test_scripts", "test_7_draw_multiple_tags_png.py"), ])


def report_data_ready():
    pytest.main([os.path.join("test_scripts", "test_8_report_ready.py"), ])


if __name__ == '__main__':
    single_tag_analyse()
    multiple_tags_analyse()
    report_data_ready()
